/*
 * File : i2c.h
 *
 */
#ifndef __I2C_H_
#define __I2C_H_

#ifdef  __cplusplus
extern "C" {
#endif		/* __cplusplus */


#include "config.h"


extern void I2C_HW_Init(void);
extern int I2C_Read(unsigned char sid, unsigned char reg, unsigned char *buf, unsigned char len);
extern int I2C_Write(unsigned char sid, unsigned char reg, unsigned char *buf, unsigned char len);

int I2C_Check(I2C_TypeDef* I2Cx, unsigned long chk, char type);


#ifdef __cplusplus
}
#endif	/* __cplusplus */
#endif	/* __BUZZEr_H_ */